Learn R Programming

gmp (version 0.5-4)

Relational Operator: Relational Operators

Description

Binary operators which allow the comparison of values in atomic vectors.

Usage

## S3 method for class 'bigz':
sign(x)
## S3 method for class 'bigz':
==(e1, e2)
## S3 method for class 'bigz':
<(e1, e2)="" ##="" s3="" method="" for="" class="" 'bigz':="">=(e1, e2)

Arguments

x, e1, e2
Robject (vector or matrix-like) of class "bigz".

See Also

mod.bigz for arithmetic operators.

Examples

Run this code
x <- as.bigz(8000)
  x ^ 300 < 2 ^x

  sign(as.bigz(-3:3))
  sign(as.bigq(-2:2, 7))

Run the code above in your browser using DataLab